<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\AccountLog
 *
 * @property int $id 账户日志ID
 * @property int $user_id 用户ID
 * @property int $coin_id 币种ID
 * @property string $type 操作：充值到账，提现申请，提币通过，提币撤销，兑换，购买算力，购买矿机，直推奖励，间推奖励，USDT系统充值，USDT系统扣除
 * @property string $account_type 资产类型
 * @property int|null $action_id 操作对应记录ID
 * @property float|null $before 操作前数量
 * @property float $number 操作数量
 * @property float|null $after 操作后数量
 * @property int $version 版本号
 * @property string|null $time 时间
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AccountLog newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AccountLog newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AccountLog query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AccountLog whereAccountType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AccountLog whereActionId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AccountLog whereAfter($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AccountLog whereBefore($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AccountLog whereCoinId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AccountLog whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AccountLog whereNumber($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AccountLog whereTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AccountLog whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AccountLog whereUserId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\AccountLog whereVersion($value)
 * @mixin \Eloquent
 */
class AccountLog extends Model
{
    public $timestamps = false;

    protected $fillable = [
        'coin_id', 'type', 'account_type', 'action_id', 'before', 'number', 'after', 'version', 'time', 'user_id'
    ];
}
